package com.example.framwork.exception;

/**
 * @author Sheeper
 * @date 2018/5/24.
 */
public class UniqueException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Object[] objects;

    public UniqueException(String msg) {
        super(msg);
    }

    public UniqueException(String msg, Object... objects) {
        super(msg);
        this.objects = objects;
    }

    public UniqueException(String msg, Throwable throwable) {
        super(msg, throwable);
    }

    public Object[] getObjects() {
        return objects;
    }

    public void setObjects(Object[] objects) {
        this.objects = objects;
    }
}
